package com.mycoffee.ui;

import com.example.mycoffee.MainActivity;
import com.example.mycoffee.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

public class CoffeStart extends Activity {

	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.welc);
		
//		Intent intent=new Intent(this,Welcome.class);
//		startActivity(intent);
//		
//		Runnable runnable=new Runnable() {
//			Handler handler=new Handler();
//			@Override
//			public void run() {
//				handler.postDelayed(this, 2000);
//			}
//		};
//		

		new Handler().postDelayed(new Runnable(){
			@Override
			public void run(){
				Intent intent = new Intent (CoffeStart.this,MainActivity.class);			
				startActivity(intent);	
				
				//Appstart.this.finish();
			}
		}, 3000);
	   }
	}

	

